<!DOCTYPE html>
<html>
<head>
    <title>管理员列表 - 后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" media="all">
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <style type="text/css">
        .header span{background:#009688;margin-left:30px;padding:10px;color:#ffffff;}
        .header div{border-bottom:solid 2px #009688;margin-top: 8px;}
        .header button{float:right;margin-top:-5px;}
    </style>
</head>
<body style="padding:10px; box-sizing: border-box;">
<div class="header">
    <span>活动列表</span>
    <div></div>
</div>
<table class="layui-table">
    <thead>
    <tr>
        <th>ID</th>
        <th>学院名称</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {foreach(actives as $lists_v)}
    <tr>
        <td>{$lists_v.id}</td>
        <td>{$lists_v.school_name}</td>
        <td>
            {if($lists_v.status == 1)}
            开启
            {else}
            关闭
            {/if}
        </td>
        <td>
            <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="download({$lists_v.id})">
                <i class="layui-icon layui-icon-download-circle">下载</i>
            </button>
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>
</body>
</html>
<script type="text/javascript">
    layui.use(['layer'],function(){
        $ = layui.jquery;
    });

    //下载用户Excel
    function download(id){
        window.open("/user/download?id="+id)
    }
</script>